using UnityEngine;

namespace DG.Tweening
{
    // [Assembly-CSharp-firstpass.dll].DG.Tweening.DOTweenCYInstruction
    public static class DOTweenCYInstruction
    {
        
        #region DG.Tweening.DOTweenCYInstruction.WaitForCompletion
        // [Assembly-CSharp-firstpass.dll].DG.Tweening.DOTweenCYInstruction.WaitForCompletion
        public class WaitForCompletion : CustomYieldInstruction
        {
            // Fields
            private readonly DG.Tweening.Tween t;
            
            // Properties
            public override bool keepWaiting { get; }
            
            // Methods
            public override bool get_keepWaiting()
            {
                bool val_3 = this.t._active_k__BackingField;
                if(val_3 != false)
                {
                        bool val_1 = DG.Tweening.TweenExtensions.IsComplete(t:  this.t);
                    val_3 = val_1 ^ 1;
                }
                
                val_1 = val_3;
                return (bool)val_1;
            }
            public WaitForCompletion(DG.Tweening.Tween tween)
            {
                this.t = tween;
            }
        
        }
        
        #endregion
        
        
        #region DG.Tweening.DOTweenCYInstruction.WaitForRewind
        // [Assembly-CSharp-firstpass.dll].DG.Tweening.DOTweenCYInstruction.WaitForRewind
        public class WaitForRewind : CustomYieldInstruction
        {
            // Fields
            private readonly DG.Tweening.Tween t;
            
            // Properties
            public override bool keepWaiting { get; }
            
            // Methods
            public override bool get_keepWaiting()
            {
                if(this.t._active_k__BackingField == false)
                {
                        return true;
                }
                
                if(this.t._playedOnce_k__BackingField != false)
                {
                        float val_4 = (float)(DG.Tweening.TweenExtensions.CompletedLoops(t:  this.t)) + 1;
                    val_4 = this.t._position_k__BackingField * val_4;
                    var val_3 = (val_4 > 0f) ? 1 : 0;
                    return true;
                }
                
                return true;
            }
            public WaitForRewind(DG.Tweening.Tween tween)
            {
                this.t = tween;
            }
        
        }
        
        #endregion
        
        
        #region DG.Tweening.DOTweenCYInstruction.WaitForKill
        // [Assembly-CSharp-firstpass.dll].DG.Tweening.DOTweenCYInstruction.WaitForKill
        public class WaitForKill : CustomYieldInstruction
        {
            // Fields
            private readonly DG.Tweening.Tween t;
            
            // Properties
            public override bool keepWaiting { get; }
            
            // Methods
            public override bool get_keepWaiting()
            {
                return (bool)this.t._active_k__BackingField;
            }
            public WaitForKill(DG.Tweening.Tween tween)
            {
                this.t = tween;
            }
        
        }
        
        #endregion
        
        
        #region DG.Tweening.DOTweenCYInstruction.WaitForElapsedLoops
        // [Assembly-CSharp-firstpass.dll].DG.Tweening.DOTweenCYInstruction.WaitForElapsedLoops
        public class WaitForElapsedLoops : CustomYieldInstruction
        {
            // Fields
            private readonly DG.Tweening.Tween t;
            private readonly int elapsedLoops;
            
            // Properties
            public override bool keepWaiting { get; }
            
            // Methods
            public override bool get_keepWaiting()
            {
                if(this.t._active_k__BackingField == false)
                {
                        return false;
                }
                
                var val_2 = ((DG.Tweening.TweenExtensions.CompletedLoops(t:  this.t)) < this.elapsedLoops) ? 1 : 0;
                return false;
            }
            public WaitForElapsedLoops(DG.Tweening.Tween tween, int elapsedLoops)
            {
                this.t = tween;
                mem[1152921504930430424] = elapsedLoops;
            }
        
        }
        
        #endregion
        
        
        #region DG.Tweening.DOTweenCYInstruction.WaitForPosition
        // [Assembly-CSharp-firstpass.dll].DG.Tweening.DOTweenCYInstruction.WaitForPosition
        public class WaitForPosition : CustomYieldInstruction
        {
            // Fields
            private readonly DG.Tweening.Tween t;
            private readonly float position;
            
            // Properties
            public override bool keepWaiting { get; }
            
            // Methods
            public override bool get_keepWaiting()
            {
                if(this.t._active_k__BackingField == false)
                {
                        return false;
                }
                
                float val_4 = (float)(DG.Tweening.TweenExtensions.CompletedLoops(t:  this.t)) + 1;
                val_4 = this.t._position_k__BackingField * val_4;
                var val_3 = (val_4 < 0) ? 1 : 0;
                return false;
            }
            public WaitForPosition(DG.Tweening.Tween tween, float position)
            {
                this.t = tween;
                mem[1152921504930430424] = position;
            }
        
        }
        
        #endregion
        
        
        #region DG.Tweening.DOTweenCYInstruction.WaitForStart
        // [Assembly-CSharp-firstpass.dll].DG.Tweening.DOTweenCYInstruction.WaitForStart
        public class WaitForStart : CustomYieldInstruction
        {
            // Fields
            private readonly DG.Tweening.Tween t;
            
            // Properties
            public override bool keepWaiting { get; }
            
            // Methods
            public override bool get_keepWaiting()
            {
                if(this.t._active_k__BackingField == false)
                {
                        return false;
                }
                
                var val_1 = (this.t._playedOnce_k__BackingField == false) ? 1 : 0;
                return false;
            }
            public WaitForStart(DG.Tweening.Tween tween)
            {
                this.t = tween;
            }
        
        }
        
        #endregion
        
    
    }

}
